import request from '@/utils/request'

export default{
    getList(current, limit) {
        return request({
            url: `/classify/admin/page/${current}/${limit}`,
            method: 'get'
        })
    },
    removeById(id) {
        return request({
            url: `/classify/admin/remove/${id}`,
            method: 'delete'
          })
    },
    disableById(id){
        return request({
            url: `/ucenter/admin/disable/${id}`,
            method: 'put'
          })
    },
    add(title,imageUrl,linkUrl){
        return request({
            url: `/classify/admin/add`,
            method: 'post',
            data: {
                title,
                imageUrl,
                linkUrl
              }
        })
    }
}